include $(top_srcdir)/Makefile.shared

SUBDIRS=file-manager

bin_PROGRAMS=					\
	credenza				\
	credenza-file-management-properties	\
	credenza-autorun-software		\
	credenza-connect-server			\
	$(NULL)

libexec_PROGRAMS=				\
	credenza-convert-metadata		\
	$(NULL)

INCLUDES =							\
	-I$(top_srcdir) 					\
	-I$(top_srcdir)/cut-n-paste-code			\
	-I$(top_builddir)/libcredenza-private 			\
	$(CORE_CFLAGS) 						\
	$(WARNING_CFLAGS)					\
	$(EXIF_CFLAGS)						\
	$(EXEMPI_CFLAGS)                                        \
	-DDATADIR=\""$(datadir)"\" 				\
	-DLIBDIR=\""$(libdir)"\" 				\
	-DLIBEXECDIR=\""$(libexecdir)"\" 			\
	-DCREDENZA_DATADIR=\""$(datadir)/credenza"\" 		\
	-DUIDIR=\""$(datadir)/credenza/ui"\" 		\
	-DCREDENZA_PIXMAPDIR=\""$(datadir)/pixmaps/credenza"\" 	\
	-DPREFIX=\""$(prefix)"\" 				\
	-DSYSCONFDIR=\""$(sysconfdir)"\" 			\
	-DVERSION="\"$(VERSION)\"" 				\
	$(DISABLE_DEPRECATED_CFLAGS)                            \
	$(NULL)

LDADD =\
	$(top_builddir)/src/file-manager/libcredenza-file-manager.la \
	$(top_builddir)/libcredenza-private/libcredenza-private.la  \
	$(CORE_LIBS) \
	$(EXIF_LIBS) \
	$(EXEMPI_LIBS) \
	$(POPT_LIBS) \
	$(NULL)

@INTLTOOL_DESKTOP_RULE@

desktop_in_files=network-scheme.desktop.in
desktop_files=$(desktop_in_files:.desktop.in=.desktop)
desktopdir = $(datadir)/gnome/network/

schemedir = $(datadir)/applications
scheme_DATA = network-scheme.desktop

credenza_SOURCES = \
	credenza-actions.h			\
	credenza-application.c			\
	credenza-application.h			\
	credenza-bookmark-list.c		\
	credenza-bookmark-list.h		\
	credenza-bookmarks-window.c		\
	credenza-bookmarks-window.h		\
	credenza-connect-server-dialog.c	\
	credenza-connect-server-dialog.h	\
	credenza-connect-server-dialog-nonmain.c	\
	credenza-desktop-window.c		\
	credenza-desktop-window.h		\
	credenza-file-management-properties.c	\
	credenza-file-management-properties.h	\
	credenza-image-properties-page.c	\
	credenza-image-properties-page.h	\
	credenza-location-dialog.c              \
	credenza-location-dialog.h              \
	credenza-location-entry.c               \
	credenza-location-entry.h               \
	credenza-main.c 			\
	credenza-main.h				\
	credenza-notes-viewer.c			\
	credenza-notes-viewer.h			\
	credenza-property-browser.c     	\
	credenza-property-browser.h		\
	credenza-query-editor.c			\
	credenza-query-editor.h			\
	credenza-search-bar.c			\
	credenza-search-bar.h			\
	credenza-self-check-functions.c 	\
	credenza-self-check-functions.h 	\
	credenza-spatial-window.c               \
	credenza-spatial-window.h               \
	credenza-trash-bar.c			\
	credenza-trash-bar.h			\
	credenza-window-bookmarks.c		\
	credenza-window-bookmarks.h		\
	credenza-window-manage-views.c		\
	credenza-window-manage-views.h		\
	credenza-window-menus.c         	\
	credenza-window-pane.c	\
	credenza-window-pane.h	\
	credenza-window-private.h		\
	credenza-window-slot.c			\
	credenza-window-slot.h			\
	credenza-window.c			\
	credenza-window.h			\
	credenza-x-content-bar.c		\
	credenza-x-content-bar.h		\
	credenza-zoom-control.c			\
	credenza-zoom-control.h			\
	$(NULL)

credenza_file_management_properties_SOURCES= \
	credenza-file-management-properties.c		\
	credenza-file-management-properties.h		\
	credenza-file-management-properties-main.c	\
	$(NULL)

credenza_autorun_software_SOURCES= 			\
	credenza-autorun-software.c			\
	$(NULL)

credenza_connect_server_SOURCES= \
	credenza-bookmark-list.c		\
	credenza-bookmark-list.h		\
	credenza-connect-server-dialog.c	\
	credenza-connect-server-dialog.h	\
	credenza-connect-server-dialog-main.c	\
	credenza-location-entry.c		\
	credenza-location-entry.h		\
	$(NULL)

credenza_convert_metadata_SOURCES= \
	credenza-convert-metadata.c	\
	$(NULL)

TESTS=check-credenza

@INTLTOOL_SERVER_RULE@

uidir = $(datadir)/credenza/ui
ui_DATA = 					\
	credenza-shell-ui.xml			\
	credenza-spatial-window-ui.xml          \
	credenza-file-management-properties.ui	\
	credenza-bookmarks-window.ui		\
	$(NULL)

CLEANFILES = \
	$(desktop_files)			\
	$(server_DATA)				\
	$(NULL)

EXTRA_DIST =					\
	$(server_in_files)			\
	$(ui_DATA)				\
	check-credenza				\
	$(desktop_in_files)			\
	$(NULL)

BUILT_SOURCES = \
	$(NULL)

dist-hook:
	cd $(distdir); rm -f $(CLEANFILES)
